package com.bridgeintelligent.tag.customer.mapper;

import com.bridgeintelligent.tag.customer.entity.IssueLog;
import com.bridgeintelligent.tag.customer.entity.IssuePending;
import com.bridgeintelligent.tag.customer.entity.IssueTaskLog;
import com.bridgeintelligent.tag.customer.model.IssueLogQueryModel;
import com.bridgeintelligent.tag.customer.vo.IssueLogVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @description
 * @author: grp 2021-02-23 14:49
 **/
@Mapper
public interface IssueLogMapper {
    int addLog(IssueLog log);

    int updateLog(IssueLog log);

    int addTaskLog(IssueTaskLog task);

    List<IssueLogVO> findList(IssueLogQueryModel model);

    IssueTaskLog findOneTaskLog(String logId);

    int addPending(IssuePending pending);

    IssueLog findOneLog(String logId);

    Integer runCount(String taskId);

    String findIndexIdByTaskId(String taskLogId);
}
